﻿@model Everynet.Models.signUpModel
@using Everynet.Models
@{
    ViewBag.Title = "Availability";
    Layout = "~/Views/Shared/_SignUpLayout.cshtml";
}

<div id='screen'></div>
<div class="body-page">
    <div id='loaderCenter' class="displaynone">
        <img src="@Url.Content("~/Content/images/ajax_loader_gray.gif")" alt="Please wait..." class="ajax-loader"/> 
         <p class="loadertext">Please wait...</p>
    </div>
    <h1 class="top-head">
        Availability</h1>
    <h2 class="signup-form-heading">
        Signup step 2 of 6
    </h2>
    <div>
        <div id="err" class="validation-summary-errors">
        </div>
        <br />
        <table width="60%">
            <tr>
                <td colspan="2" style="padding-bottom: 5px;">
                    <b>Your login detail:</b>
                </td>
            </tr>
            <tr>
                <td>
                    Email:
                </td>
                <td>@Model.Email
                </td>
            </tr>
            <tr>
                <td>
                    Password:
                </td>
                <td>@Model.Password
                </td>
            </tr>
        </table>
         @*   <br />
    Currently we are unable to perform an automatic address qualification, please proceed
        with your application and a sales representative will contact you.<br />*@
        <br />
        <div id="AjaxPlaceHolderConnection">
        </div>
        <div id="AjaxPlaceHolderNumber" style="display: none;">
        </div>
        <div id="AjaxPlaceHolderAddress" style="display: none;">
        </div>
        <br />
        <br />
        @Html.HiddenFor(m => m.ServiceAddress)
        @Html.HiddenFor(m => m.ServicePhoneNumber)
        <div class="div60" id="divshowQualificationFail" style="display: none;">
            <div class="txtboxes60">@Html.LabelFor(m => m.PlanNamesID)*</div>
            <div>
                @Html.DropDownListFor(m => m.PlanNamesID, Model.SelectedPlanNames, "Please select an option")
                <br />
                <span id="divErrPlanes" class="validation-summary-errors font12" style="display: none;">
                </span>@*padding-left: 170px;*@
                @Html.ValidationMessageFor(m => m.PlanNamesID)
            </div>
        </div>
    </div>
   @*<div id="divExistingProvider" style="display: none;">
        <div class="div80">
            <div class="txtboxes81">@Html.LabelFor(m => m.ADSLprovider)<span class="red">*</span></div>
            <div>
                @Html.DropDownListFor(m => m.ADSLprovider, Model.SelectedADSL, "Please select an option", new { @class = "checkvalidationAdsl" })
                <div id="selectedAdslValidation" class="floatright">
                </div>
                <br />
                <span id="divErrInsideADSLProvider" class="validation-summary-errors font10" style="display: none;">
                </span><span>@Html.ValidationMessageFor(m => m.ADSLprovider)</span>
            </div>
        </div>
        <br />
        <br />
        <div class="div80" id="divshowhideOther">
            <div class="txtboxes81">@Html.LabelFor(m => m.ADSLproviderOther)<span class="red">*</span></div>
            <div>@Html.TextBoxFor(m => m.ADSLproviderOther, new { @class = "checkvalidationOther" })<div
                id="OtherValidation" class="floatright">
            </div>
                <br />
                <span id="divErrOther" class="validation-summary-errors font10" style="display: none;">
                </span>
            </div>
        </div>
    </div>*@
    <br />
    <div>
        <div class="floatleft">
            <a href="@Url.Action("Signup", "signUp", new { id = @Model.ID })">
                <input type="submit" value="Back" class="btncolor" id="btnback" /></a></div>
        <div class="padlef500new">
            <a href="@Url.Action("Configuration", "signUp", new { id = @Model.ID })">
                <input id="btnnext" type="submit" value="Next" onclick="return btnclickNextSubmit();"
                    class="btncolor" /></a></div>

                    @Html.Hidden("hdnReplaceText", @Url.Action("ReplaceText", "signUp", new { id = @Model.ID }))
                    @Html.Hidden("hdnResidential", ((int)@signUpModel.enumPlanNames.TransACTResidential))
                    @Html.Hidden("hdnBusiness", ((int)@signUpModel.enumPlanNames.TransACTBusiness))
                    @Html.Hidden("hdnSendMailFail", @Url.Action("SendEmailtoEverynetIfQualificationFail", "signUp"))
                    @Html.Hidden("hdnSendMailNaked", @Url.Action("SendEmailOfNakedToUserandVendor", "signUp"))
                    @Html.Hidden("hdnUpdateAvailability", @Url.Action("UpdateAvailability", "signUp"))
                    @Html.Hidden("hdnUserID", @Model.ID)

   </div>
</div>
 @section JavaScriptSignUp
{
 <script src="@Url.Content("~/Scripts/client/Availability.js")" type="text/javascript"></script>
}